import request from '@/utils/request';
import { AxiosPromise } from 'axios';

import { knowledge, system, aiqa } from '@/api/apiModulesType';

// 查询模板列表
export const apiEnterpriseTemplateList = (query?: any): AxiosPromise<any[]> => {
    return request({
        url: `/${system}/api/enterpriseTemplate`,
        method: 'get',
        params: query
    });
};

// 删除模板
export const apiEnterpriseTemplateDel = (ids: any): AxiosPromise<any> => {
    return request({
        url: `/${system}/api/enterpriseTemplate`,
        method: 'delete',
        data: ids
    });
};